package com.xian;

import com.xian.client.RPC_Consumer;
import com.xian.service.UserService;

public class ConsumerBoot {

    private static final String provider_name ="UserService";
    private static final String methd_name ="sayHello";

    public static void main(String[] args) throws InterruptedException {
        //创建代理对象
       UserService userService = (UserService) RPC_Consumer.createProxy(UserService.class,provider_name,methd_name);
       while (true){
           String result = userService.sayHello("are you ok!!!!");
           System.out.println(result);

           Thread.sleep(2000L);

       }
        //循环给服务器写数据
    }
}
